package com.teamwhole.common.model;

import java.io.Serializable;

public class ResultInfo implements Serializable {
	private static final long serialVersionUID = 1L;
	public static Integer ERROR_CODE_OK = 0;
	public static String ERROR_MSG_OK = "ok";

	private Integer errcode = ERROR_CODE_OK;
	private String errmsg = ERROR_MSG_OK;

	public ResultInfo() {

	}

	public ResultInfo(Integer errcode, String errmsg) {
		this.errcode = errcode;
		this.errmsg = errmsg;
	}

	public static ResultInfo ok() {
		return new ResultInfo(ERROR_CODE_OK, ERROR_MSG_OK);
	}

	public Integer getErrcode() {
		return errcode;
	}

	public void setErrcode(Integer errcode) {
		this.errcode = errcode;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
